package com.kh.first.pojo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.kh.first.utils.LongJsonSerializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class RepairLogPojo {
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long id;
    private String applyStaffName;
    private String applyStaffDepartment;
    private String applyStaffDepartmentName;


    private String applyReason;
    private String repairStaffName;

    private int mobile = -1;
    private boolean pc = false;

    private List<String> repairStaffNameList;
    private Integer repairType;
    private Long costMoney;

    private String solveWay;//解决办法
    private String recordUserId;//记录人，也就是报修人

    private Integer logStatus;//1 未接单，2 已接单，3 已经解决

    private String imgs;
    private String receiveStaffId;
    private String receiveStaffName;
    private Integer logType;//类别,1普通维修单，2 mes的维修单
    private String mesDeviceId;//mes设备的唯一值


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;//接单时间

    private Integer rate;
    private String rateContent;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTimeStart;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTimeEnd;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date repairCompleteTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date repairCompleteTimeStart;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date repairCompleteTimeEnd;
    private Integer start;
    private Integer size;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSolveWay() {
        return solveWay;
    }

    public void setSolveWay(String solveWay) {
        this.solveWay = solveWay;
    }

    public String getApplyStaffDepartmentName() {
        return applyStaffDepartmentName;
    }

    public void setApplyStaffDepartmentName(String applyStaffDepartmentName) {
        this.applyStaffDepartmentName = applyStaffDepartmentName;
    }

    public List<String> getRepairStaffNameList() {
        return repairStaffNameList;
    }

    public void setRepairStaffNameList(List<String> repairStaffNameList) {
        this.repairStaffNameList = repairStaffNameList;
    }

    public String getApplyStaffName() {
        return applyStaffName;
    }

    public void setApplyStaffName(String applyStaffName) {
        this.applyStaffName = applyStaffName;
    }

    public String getApplyStaffDepartment() {
        return applyStaffDepartment;
    }

    public void setApplyStaffDepartment(String applyStaffDepartment) {
        this.applyStaffDepartment = applyStaffDepartment;
    }

    public String getApplyReason() {
        return applyReason;
    }

    public void setApplyReason(String applyReason) {
        this.applyReason = applyReason;
    }

    public String getRepairStaffName() {
        return repairStaffName;
    }

    public void setRepairStaffName(String repairStaffName) {
        this.repairStaffName = repairStaffName;
    }

    public Integer getRepairType() {
        return repairType;
    }

    public void setRepairType(Integer repairType) {
        this.repairType = repairType;
    }

    public Long getCostMoney() {
        return costMoney;
    }

    public void setCostMoney(Long costMoney) {
        this.costMoney = costMoney;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Date getApplyTimeStart() {
        return applyTimeStart;
    }

    public void setApplyTimeStart(Date applyTimeStart) {
        this.applyTimeStart = applyTimeStart;
    }

    public Date getApplyTimeEnd() {
        return applyTimeEnd;
    }

    public void setApplyTimeEnd(Date applyTimeEnd) {
        this.applyTimeEnd = applyTimeEnd;
    }

    public Date getRepairCompleteTime() {
        return repairCompleteTime;
    }

    public void setRepairCompleteTime(Date repairCompleteTime) {
        this.repairCompleteTime = repairCompleteTime;
    }

    public Date getRepairCompleteTimeStart() {
        return repairCompleteTimeStart;
    }

    public void setRepairCompleteTimeStart(Date repairCompleteTimeStart) {
        this.repairCompleteTimeStart = repairCompleteTimeStart;
    }

    public Date getRepairCompleteTimeEnd() {
        return repairCompleteTimeEnd;
    }

    public void setRepairCompleteTimeEnd(Date repairCompleteTimeEnd) {
        this.repairCompleteTimeEnd = repairCompleteTimeEnd;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
